import request from '@/utils/request'

// 获取格子树
export function getGridList(id) {
  return request({
    url: '/archive/shelf/getGridList/' + id,
    method: 'get'
  })
}

// 获取列表
export function getDataList(query) {
  return request({
    url: '/archive/updown/list',
    method: 'get',
    params: query
  })
}

// 按卷上架---获取案卷详情
export function detail(id) {
  return request({
    url: '/archive/updown/detail/' + id,
    method: 'get'
  })
}

// 按盒上架---获取盒子详情 /archive/updown/getInfo/199824184921165824
export function getInfo(id){
  return request({
    url: '/archive/updown/getInfo/' + id,
    method: 'get'
  })
}

// 详情页面的列表
export function dalist(query){
  return request({
    url: '/archive/updown/dalist',
    method: 'get',
    params: query
  })
}

// 获取上架位置
export function getPosition(id) {
  return request({
    url: '/archive/updown/position/' + id,
    method: 'get'
  })
}

// 打印盒脊
export function printRidgeBox(query) {
  return request({
    url: '/archive/updown/printRidgeBox',
    method: 'get',
    params: query
  })
}

// 上架
export function grouding(data) {
  return request({
    url: '/archive/updown/grounding',
    method: 'post',
    data: data
  })
}

// 下架
export function offShelf(data) {
  return request({
    url: '/archive/updown/offShelf',
    method: 'post',
    data: data
  })
}

// 调整档案位置
export function relocation(data) {
  return request({
    url: '/archive/updown/relocation',
    method: 'post',
    data: data
  })
}

// 通过id获取门类id
export function getcateidbyid(data) {
  return request({
    url: '/archive/wjhsz/getcateidbyid',
    method: 'post',
    data: data
  })
}

//获取表头
export function getthbytreenodeHeaderList(data) {
  return request({
    url: '/archive/wjzl/getthbytreenode',
    method: 'POST',
    data: data
  })
}

